package com.xuhuan.demo.ftp.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author huan.xu
 * @date 2021/11/24 18:31
 * @description
 */
@Data
@PropertySource(value = {"classpath:ftp-config.properties"})
@ConfigurationProperties(prefix = "ftp-config", ignoreUnknownFields = false)
@Component
public class FtpConfig {
    /**
     * ftp服务地址
     */
    private String host;
    /**
     * ftp服务端口
     */
    private int port;
    /**
     * ftp服务登录账号
     */
    private String username;
    /**
     * ftp服务登录密码
     */
    private String password;
    /**
     * ftp服务根路径
     */
    private String pathName;
    /**
     * uuid长度
     */
    private int uuidLen;
}
